package com.bookshop.rmi;

import java.rmi.Naming;
import java.rmi.registry.LocateRegistry;

public class NetworkInit {
	
	public void netWorkInit(){
		try {
			LocateRegistry.createRegistry(1099);
			IBusinessService iRemote = new BusinessService();
			Naming.rebind("Service", iRemote);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
